﻿using Glue.Converters;
using Xunit;

namespace GlueTests.Converters
{
    namespace NegatedBoolConverterTest
    {
        public class When_converting
        {
            private readonly NegatedBoolConverter converter;

            public When_converting()
            {
                converter = new NegatedBoolConverter();
            }

            [Fact]
            public void Should_negate_boolean_value()
            {
                Assert.Equal(false,converter.MapTowardsLeft(true));
                Assert.Equal(true, converter.MapTowardsLeft(false));
                Assert.Equal(false, converter.MapTowardsRight(true));
                Assert.Equal(true, converter.MapTowardsRight(false)); 
            }
        }
    }
}
